package cn.ll.po;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import static javax.persistence.GenerationType.IDENTITY;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * Department entity.
 * 
 * @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "department", catalog = "lldb")
public class Department implements java.io.Serializable {

	// Fields

	private Integer id;
	private String departmentName;
	private String depShortName;

	// Constructors

	/** default constructor */
	public Department() {
	}

	/** full constructor */
	public Department(String departmentName, String depShortName) {
		this.departmentName = departmentName;
		this.depShortName = depShortName;
	}

	// Property accessors
	@Id
	@GeneratedValue(strategy = IDENTITY)
	@Column(name = "id", unique = true, nullable = false)
	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	@Column(name = "department_name", length = 150)
	public String getDepartmentName() {
		return this.departmentName;
	}

	public void setDepartmentName(String departmentName) {
		this.departmentName = departmentName;
	}

	@Column(name = "depShortName", length = 30)
	public String getDepShortName() {
		return this.depShortName;
	}

	public void setDepShortName(String depShortName) {
		this.depShortName = depShortName;
	}

}